package com.opc.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "frequency")//application.xml文件
@Data
public class FrequencyProperties {
    private int reconnectwaitingtime;
    private int heartBeatFrequency0;
    private int heartBeatFrequency1;
    private int heartBeatFrequency2;
    private int heartBeatFrequency3;
    private int heartBeatFrequency4;
    private int cacheFrequency;
    private int monitorNodeFrequency;
    private int torqueDataFrequency;
    private int sampleDataFrequency;
    //plc获取数据重试次数
    private int plcRetryFrequency;
    private int plcRetryTime;
//    private int statisticsFrequency;
    //节点请求超时时间
    private int nodeRequestTimeout;
}
